x86/mce: make 'severity_cpu' private to its users
authorHaozhong Zhang <haozhong.zhang@intel.com>
Fri, 7 Apr 2017 13:55:34 +0000 (15:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Apr 2017 13:55:34 +0000 (15:55 +0200)
commit011899a2e00b9f748c04d501c205da04bbff4359
treedadc96e1259fdeb4a75fbcf683d813811cb1b589
parentd0a699a389f1a5b282c451f3f022ccd01074b5f3
x86/mce: make 'severity_cpu' private to its users

The current 'severity_cpu' is used by both mcheck_cmn_handler() and
mce_softirq(). If MC# happens during mce_softirq(), the values set in
mcheck_cmn_handler() and mce_softirq() may interfere with each
other. Use private 'severity_cpu' for each function to fix this issue.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce.c